import api from '@/api'

const state = {

};
const mutations = {

};
const actions = {

    //任务的搜索匹配
    async search_stage_and_task({
        commit
    }, obj) {
        const result = await api.transactionTask.search_stage_and_task(obj);
        return result
    },
    //阶段列表接口
    async stage_list_service({
        commit
    }, obj) {
        const result = await api.transactionTask.stage_list_service(obj);
        return result
    },

    //通过阶段id去查询任务
    async task_and_by_stage_id({
        commit
    }, obj) {
        const result = await api.transactionTask.task_and_by_stage_id(obj);
        return result
    },
    //删除阶段接口
    async delete_phase_service({
        commit
    }, obj) {
        const result = await api.transactionTask.delete_phase_service(obj);
        return result
    },
    //编辑阶段接口
    async modify_phase_services({
        commit
    }, obj) {
        const result = await api.transactionTask.modify_phase_services(obj);
        return result
    },
    //添加阶段
    async new_phase_services({
        commit
    }, obj) {
        const result = await api.transactionTask.new_phase_services(obj);
        return result
    },

    //添加任务接口
    async new_task_service({
        commit
    }, obj) {
        const result = await api.transactionTask.new_task_service(obj);
        return result
    },
    //任务名称编辑
    async task_name_editor({
        commit
    }, obj) {
        const result = await api.transactionTask.task_name_editor(obj);
        return result
    },
    //删除任务接口
    async delete_task_service({
        commit
    }, obj) {
        const result = await api.transactionTask.delete_task_service(obj);
        return result
    },
    //模板列表接口
    async query_template({
        commit
    }, obj) {
        const result = await api.transactionTask.query_template(obj);
        return result
    },
    //指定模板详情接口
    async template_demapnotes({
        commit
    }, obj) {
        const result = await api.transactionTask.template_demapnotes(obj);
        return result
    },
    //新增模板接口
    async new_template_service({
        commit
    }, obj) {
        const result = await api.transactionTask.new_template_service(obj);
        return result
    },
};
const getters = {

};

export default {
    namespaced: true,
    state,
    actions,
    mutations,
    getters
}